package org.dromara.canteen.service;

import org.dromara.canteen.domain.CanteenFood;
import org.dromara.canteen.domain.vo.CanteenFoodVo;
import org.dromara.canteen.domain.bo.CanteenFoodBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.github.yulichang.base.MPJBaseService;
import java.util.Collection;
import java.util.List;

/**
 * 食材管理Service接口
 *
 * @author Gjb
 * @date 2025-07-28
 */
public interface ICanteenFoodService extends MPJBaseService<CanteenFood> {

    /**
     * 查询食材管理
     */
    CanteenFoodVo queryById(Long foodId);

    /**
     * 查询食材管理列表
     */
    TableDataInfo<CanteenFoodVo> queryPageList(CanteenFoodBo bo, PageQuery pageQuery);

    /**
     * 查询食材管理列表
     */
    List<CanteenFoodVo> queryList(CanteenFoodBo bo);

    /**
     * 新增食材管理
     */
    Boolean insertByBo(CanteenFoodBo bo);

    /**
     * 修改食材管理
     */
    Boolean updateByBo(CanteenFoodBo bo);

    /**
     * 校验并批量删除食材管理信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    CanteenFood findFood(CanteenFoodVo canteenFoodVo);
}
